import React from 'react';
import { LeftOutlined } from '@ant-design/icons';
import "./index.less";


interface Props {
    history: any;
    children: any
}

export default function NavHeader(props: Props) {
    return (
        <div className="nav-header">
            <LeftOutlined onClick={() => {
                props.history.goBack()
            }}></LeftOutlined>
            {props.children}
        </div>
    )
}